﻿<Window x:Class="Itasa.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Loaded="Window_Loaded"
        Closing="Window_Closing"
        Title="ItaSA RSS2SUB" Height="480" Width="640" Icon="/Itasa;component/Images/logofbico.gif">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="23"></RowDefinition>
            <RowDefinition></RowDefinition>
            <RowDefinition Height="25"></RowDefinition>
        </Grid.RowDefinitions>
        <Menu Grid.Row="0" HorizontalAlignment="Stretch" Name="menu" VerticalAlignment="Top" Height="23">
            <MenuItem Name="config" Header="_Configurazione" Click="Config_Click"></MenuItem>
            <MenuItem Name="update" Header="_Aggiorna" Click="update_Click">
                <MenuItem.Icon>
                    <Image Source="/Itasa;component/Images/update.png" Stretch="None" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,1,0,0" />
                </MenuItem.Icon>
            </MenuItem>
        </Menu>
        <TabControl Grid.Row="1" Name="tabContainer" VerticalAlignment="Stretch" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch">
            <TabItem Name="myShows" Header="myShows">
                <TreeView Name="showsTree">
                    <TreeView.ItemContainerStyle>
                        <Style TargetType="{x:Type TreeViewItem}">
                            <Setter Property="HorizontalContentAlignment" Value="Left"/>
                            <Setter Property="VerticalContentAlignment" Value="Center"/>
                        </Style>
                    </TreeView.ItemContainerStyle>
                    <TreeViewItem Name="showsRoot">
                        <TreeViewItem.ItemContainerStyle>
                            <Style TargetType="{x:Type TreeViewItem}">
                                <Setter Property="HorizontalContentAlignment" Value="Left"/>
                                <Setter Property="VerticalContentAlignment" Value="Center"/>
                            </Style>
                        </TreeViewItem.ItemContainerStyle>
                        <TreeViewItem.Header>
                            <StackPanel Orientation="Horizontal">
                                <Image Source="/Itasa;component/Images/tv.png" />
                                <TextBlock Text=" Serie TV" />
                            </StackPanel>
                        </TreeViewItem.Header>
                    </TreeViewItem>
                </TreeView>
            </TabItem>
            <TabItem Name="myITASA" Header="mySubs">
                <ScrollViewer HorizontalScrollBarVisibility="Auto">
                    <Grid Name="myITASA_griglia">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition></ColumnDefinition>
                            <ColumnDefinition Width="25"></ColumnDefinition>
                        </Grid.ColumnDefinitions>

                    </Grid>
                </ScrollViewer>
            </TabItem>
            <TabItem Name="myITASA_RSS">
                <TabItem.Header>
                    <StackPanel Orientation="Horizontal">
                        <TextBlock Text="myITASA RSS  "></TextBlock>
                        <Button Name="dl_myITASA" Padding="0" Width="20" Height="20" BorderThickness="0" ToolTip="Scarica tutti gli ultimi sottotitoli" Click="dl_myITASA_Click">
                            <Image Source="/Itasa;component/Images/dl_all.png" Stretch="None" HorizontalAlignment="Center" VerticalAlignment="Center"></Image>
                        </Button>
                        <Button Name="dl_myITASA_new" Padding="0" Width="20" Height="20" BorderThickness="0" ToolTip="Scarica i sottotitoli nuovi" Click="DlNew_Click">
                            <Image Source="/Itasa;component/Images/dl_new.png" Stretch="None" HorizontalAlignment="Center" VerticalAlignment="Center"></Image>
                        </Button>
                    </StackPanel>
                </TabItem.Header>
                <ScrollViewer HorizontalScrollBarVisibility="Auto">
                    <Grid Name="myITASA_RSS_griglia">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition></ColumnDefinition>
                            <ColumnDefinition Width="25"></ColumnDefinition>
                        </Grid.ColumnDefinitions>

                    </Grid>
                </ScrollViewer>
            </TabItem>
            <TabItem Name="ITASA">
                <TabItem.Header>
                    <StackPanel Orientation="Horizontal">
                        <TextBlock Text="ITASA RSS  "></TextBlock>
                        <Button Name="dl_ITASA" Padding="0" Width="20" Height="20" BorderThickness="0" ToolTip="Scarica tutti i sottotitoli" Click="dl_ITASA_Click">
                            <Image Source="/Itasa;component/Images/dl_all.png" Stretch="None" HorizontalAlignment="Center" VerticalAlignment="Center"></Image>
                        </Button>
                    </StackPanel>
                </TabItem.Header>
                <ScrollViewer HorizontalScrollBarVisibility="Auto">
                    <Grid Name="ITASA_griglia">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition></ColumnDefinition>
                            <ColumnDefinition Width="25"></ColumnDefinition>
                        </Grid.ColumnDefinitions>

                    </Grid>
                </ScrollViewer>
            </TabItem>
            <TabItem Name="calendar" Header="Calendario">
                <ScrollViewer HorizontalScrollBarVisibility="Auto">
                    <Grid Name="calendar_griglia">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="auto"></ColumnDefinition>
                            <ColumnDefinition></ColumnDefinition>
                        </Grid.ColumnDefinitions>

                    </Grid>
                </ScrollViewer>
            </TabItem>
            <TabItem Name="Torrent" Header="Torrents">
                <TabControl Name="Torrents_tc">
                    
                </TabControl>
            </TabItem>
            <TabItem Name="log" Header="Log">
                <ScrollViewer HorizontalScrollBarVisibility="Auto">
                    <TextBlock Name="logText">

                    </TextBlock>
                </ScrollViewer>
            </TabItem>
        </TabControl>
        <Grid Grid.Row="2" Height="25">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="300"></ColumnDefinition>
                <ColumnDefinition Width="auto"></ColumnDefinition>
            </Grid.ColumnDefinitions>
            <ProgressBar Name="updateProgress" Value="0" VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch" Maximum="100" Margin="5" IsIndeterminate="False"></ProgressBar>
            <Label Name="lupdateProgress" Height="25" Grid.Column="1" HorizontalContentAlignment="Left" VerticalContentAlignment="Center" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="0" />
        </Grid>
    </Grid>
</Window>
